package com.example.understandvideo.service.transcode;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import java.util.ArrayList;
import java.util.List;

// 包装类，表示<streams>元素
@XmlRootElement(name = "streams")
@XmlType(propOrder = {"streams"})
public class CloudStreams {
    private List<CloudStream> streams;
    public CloudStreams() {
        this.streams = new ArrayList<>();
    }

    public CloudStreams(List<CloudStream> streams) {
        this.streams = streams;
    }

    @XmlElement(name = "stream")
    public List<CloudStream> getStreams() {
        return streams;
    }

    public void setStreams(List<CloudStream> streams) {
        this.streams = streams;
    }
}
